package com.spic.system.service;

import java.util.List;

/**
 * 数据权限接口
 */
public interface BusinessDataScopeService {
    /**
     * 自定数据权限查询部门ids
     * ( SELECT dept_id FROM sys_role_dept WHERE role_id = {} )
     */
    List<Long> customDeptIds(Long roleId);

    /**
     * 部门及以下部门ids
     *  SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors )
     */
    List<Long> deptAndChildrenIds(Long deptId);
}
